#topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #111;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
}

#topbar button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 10px;
}

#container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px);
    margin-top: 50px;
}

#top {
    background-color: #a3d5ff;
    height: 50%;
    min-height: 30px;
    overflow: hidden;
    position: relative;
}

#top iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* pointer-events: none; */
}

#dragbar {
    height: 15px;
    background-color: #333;
    cursor: row-resize;
    z-index: 2;
}

#bottom {
    background-color: #282a36;
    flex-grow: 1;
    min-height: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

#bottom-left {
    background-color: #282a36;
    flex-basis: 50%;
    min-width: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#editor {
    flex-grow: 1;
    width: 100%;
}

.CodeMirror {
    height: 100%;
}

#vdragbar {
    width: 15px;
    background-color: #333;
    cursor: col-resize;
}

#bottom-right {
    background-color: transparent;
    flex-grow: 1;
    min-width: 30px;
    overflow: auto;
}

.vertical-layout #container {
    flex-direction: row;
}

.vertical-layout #top {
    width: 50%;
    height: 100%;
    min-width: 30px;
    min-height: 100%;
}

.vertical-layout #dragbar {
    width: 15px;
    height: 100%;
    cursor: col-resize;
}

.btn {
    outline: none;
    background-color: transparent;
    border: none;
    color:lightgray;
    margin:6px;
    font-size: 1.3rem;
    padding-left:15px;
    padding-right:15px;
    padding-top:5px;
    padding-bottom: 5px;
    border-radius: 5px;
    border:1px solid lightgray;
    cursor: pointer;
}

.vertical-layout #bottom {
    flex-direction: column;
    width: 50%;
    height: 100%;
}

.vertical-layout #vdragbar {
    width: 100%;
    height: 15px;
    cursor: row-resize;
}

.bottom-right-menu > button.active {
    border:1px solid red;
}

div.bottom-content-container > div {
    display:none;
}

div.bottom-content-container > div.active {
    display:block;
    color: lightgray;
    margin:8px;
}

.bottom-right, .bottom-left {
    background-color:#282a36;
    border:1px solid lightgray;
}

.bottom-left-menu {
    background-color: transparent;
}
